package cn.iocoder.yudao.module.infra.dal.dataobject.category;

import cn.iocoder.yudao.framework.mybatis.core.dataobject.BaseDO;
import com.baomidou.mybatisplus.annotation.KeySequence;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.time.LocalDateTime;
import java.util.List;
import java.util.Map;

/**
 * 分类编辑
 *
 * @author sun
 * @date 14:44 2023/12/4
 **/
@TableName(value = "infra_category", autoResultMap = true)
@KeySequence("infra_category_id_seq")
@Data
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = true)
public class CategoryDO extends BaseDO {
    /**
     * ID 编号
     */
    @TableId
    private Long id;

    /**
     * 分类名称
     */
    private String name;
    private Long parentId;
    private String code;
    private Integer sort;
    private Integer status;
    private String creator;
    private String createTime;
    private String updater;
    private String updateTime;
    @TableField(exist = false)
    private Integer setMap;
    @TableField(exist = false)
    private List<CategoryDO> childMenu;

}
